package com.dinkshow.dinkshow.user.model;

import com.dinkshow.dinkshow.util.BaseEntity;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * @author yuwc
 * @description 用户实体类
 * @data 2019/5/21 0021上午 10:19
 */
@Entity
@Table(name ="dink_user")
@JsonIgnoreProperties(value = {"hibernateLazyInitializer","handler","fieldHandler"},ignoreUnknown = true)
public class User extends BaseEntity {


    @Column(columnDefinition = "varchar(255) comment '姓名'")
    private String name;

    @Column(columnDefinition = "varchar(255) comment '电话'")
    private String phone;

    @Column(columnDefinition = "varchar(255) comment '住址'")
    private String address;

    @Column(columnDefinition = "varchar(255) comment '住址'")
    private String wxOpenId;

    @Column(columnDefinition = "varchar(255) comment '住址'")
    private String headImge;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getWxOpenId() {
        return wxOpenId;
    }

    public void setWxOpenId(String wxOpenId) {
        this.wxOpenId = wxOpenId;
    }

    public String getHeadImge() {
        return headImge;
    }

    public void setHeadImge(String headImge) {
        this.headImge = headImge;
    }
}
